
package com.fire.eyes.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.fire.eyes.model.NoticeModel;

import com.fire.eyes.model.UserLoginModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * NoticeDao
 *
 * @author Matthew
 * @Date 2019-01-21 19:46
 */
@Repository
public interface NoticeMapper extends BaseMapper<NoticeModel>{

	/**
	 * 根据实体查询列表
	 * @param model
	 * @return
	 */
	List<NoticeModel> selectListByModel(@Param("e")NoticeModel model);
	/**
	 *当前用户查找自己上次登陆后的所有（不区分任何类型的）新增消息
	 * */
	List<NoticeModel> queryAllNotice(@Param("UserLoginModel") UserLoginModel userLoginMode);

	/**
	 * 当前用户第一次登录的情况下判断之前的所有记录,
	 * */
	List<NoticeModel> queryFirstLoginNotice(@Param("clubUserlogin") UserLoginModel userLoginMode);


}
